<ul id="navlist">
        <li id="current"><?php echo $this->Html->link(__('Danh sách đoàn viên', true), array('action' => 'index',$user['Z1user']['chidoansv_id'])); ?></li>
        <li><?php echo $this->Html->link(__('Thêm đoàn viên mới', true), array('controller'=>'sinhviens','action' => 'add')); ?></li>
</ul>
<div class="zthongtinsvs index">
	<h2><?php __('Danh sách đoàn viên chi đoàn: '.$tencd[0] ['chidoansvs'] ['tenchidoan']);?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('mssv');?></th>
			<th><?php echo $this->Paginator->sort('tongiao_id');?></th>
			<th><?php echo $this->Paginator->sort('dantoc_id');?></th>
			<th><?php echo $this->Paginator->sort('hoten');?></th>
			<th><?php echo $this->Paginator->sort('ngaysinh');?></th>
			<th><?php echo $this->Paginator->sort('noisinh');?></th>
			<th><?php echo $this->Paginator->sort('diachi');?></th>
			<th><?php echo $this->Paginator->sort('phai');?></th>
			<th><?php echo $this->Paginator->sort('sodienthoai');?></th>
			<th><?php echo $this->Paginator->sort('email');?></th>
			<th><?php echo $this->Paginator->sort('ngayvaodoan');?></th>
			<th><?php echo $this->Paginator->sort('noivaodoan');?></th>
			<th><?php echo $this->Paginator->sort('ngayvaodang');?></th>
			<th><?php echo $this->Paginator->sort('noivaodang');?></th>
			<th><?php echo $this->Paginator->sort('truongthanhdoan');?></th>
			<th><?php echo $this->Paginator->sort('ghichu');?></th>
			<th><?php echo $this->Paginator->sort('ngayvao');?></th>
			<th><?php echo $this->Paginator->sort('ngaychuyen');?></th>
			<th><?php echo $this->Paginator->sort('tenphuongxa');?></th>
			<th><?php echo $this->Paginator->sort('tenquanhuyen');?></th>
			<th><?php echo $this->Paginator->sort('tentinhtp');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($zthongtinsvs as $zthongtinsv):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $zthongtinsv['Zthongtinsv']['mssv']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Tongiao']['tentongiao']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Dantoc']['tendantoc']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['hoten']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['ngaysinh']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['noisinh']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['diachi']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['phai']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['sodienthoai']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['email']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['ngayvaodoan']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['noivaodoan']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['ngayvaodang']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['noivaodang']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['truongthanhdoan']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['ghichu']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['ngayvao']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['ngaychuyen']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['tenphuongxa']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['tenquanhuyen']; ?>&nbsp;</td>
		<td><?php echo $zthongtinsv['Zthongtinsv']['tentinhtp']; ?>&nbsp;</td>
        <td class="actions">
			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $zthongtinsv['Zthongtinsv']['mssv'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $zthongtinsv['Zthongtinsv']['mssv'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $zthongtinsv['Zthongtinsv']['mssv']), null, sprintf(__('Are you sure you want to delete # %s?', true), $zthongtinsv['Zthongtinsv']['mssv'])); ?>
		</td>
    </tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Trang %page%/%pages%, hiện có %count% mẫu tin', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
